/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-12-7 上午11:15 Created by dwzhang
 */
package com.jade.modules.message.service;

import java.util.Date;
import javax.persistence.*;

import com.jade.journal.JournalEntity;

/**
 * 消息处理的日志。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-12-7 上午11:15
 */
@Entity
@Table (name = "MODULE_JOURNAL_MESSAGE_SERVICE")
public class MessageJournal
        extends JournalEntity
{
    public static final String NAME = "journal_message_service";
    @Id
    @GeneratedValue (generator = "MODULE_SEQ_JOURNAL_MESSAGE_SERVICE")
    @SequenceGenerator (name = "MODULE_SEQ_JOURNAL_MESSAGE_SERVICE", initialValue = 100,
            sequenceName = "MODULE_SEQ_JOURNAL_MESSAGE_SERVICE")
    private long seq;
    @Column (length = 32)
    private String id;
    @Column (length = 32)
    private String type;
    @Column (length = 32, name="message_group")
    private String messageGroup;
    @Column (length = 64)
    private String fid;
    @Lob
    private String params;
    @Column (length = 32)
    private String action;
    @Lob
    private String remark;
    @Column (name = "action_date")
    private Date actionDate;
    @Column (name = "schedule_date")
    private Date scheduleDate;

    public MessageJournal()
    {
        super(NAME);
    }

    public long getSeq()
    {
        return seq;
    }

    public void setSeq(long seq)
    {
        this.seq = seq;
    }

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getMessageGroup()
    {
        return messageGroup;
    }

    public void setMessageGroup(String messageGroup)
    {
        this.messageGroup = messageGroup;
    }

    public String getFid()
    {
        return fid;
    }

    public void setFid(String fid)
    {
        this.fid = fid;
    }

    public String getParams()
    {
        return params;
    }

    public void setParams(String params)
    {
        this.params = params;
    }

    public String getAction()
    {
        return action;
    }

    public void setAction(String action)
    {
        this.action = action;
    }

    public Date getActionDate()
    {
        return actionDate;
    }

    public void setActionDate(Date actionDate)
    {
        this.actionDate = actionDate;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public Date getScheduleDate()
    {
        return scheduleDate;
    }

    public void setScheduleDate(Date scheduleDate)
    {
        this.scheduleDate = scheduleDate;
    }
}
